package com.foo;

public class Circle extends BaseGraphic{
	
	private final int radius;
	
	public Circle(int radius, int x, int y) {
		this.setLocation(new Point(x,y));
		this.radius = radius;
	}

	public int getRadius() {
		return radius;
	}

	@Override
	public double getArea() {
		return Math.PI * this.radius*this.radius;
	}

	@Override
	public void draw(){
		System.out.println("Drawing " + this.toString());
	}

}
